{% extends "base/base.html" %}

{% comment %}

 Copyright 2013 - Tom Alessi

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and 
 limitations under the License.

{% endcomment %}

{% block content %}

<div class="row">
  {# This is a large-3 side nav #}
  {% include "admin/side_nav.html" %}

  <div class="large-9 columns">

    <div class="row">
      <div class="large-12 columns">
        <h1>Incident Report Detail</h1>
        <p>Listed below is all information pertaining to this incident report</p>
        <hr>
      </div>
    </div>
 
    <div class="row">
      <div class="large-12 columns">
        <label>Incident Report ID:</label>
        <div class="sublabel_container"><span class="sublabel">{{detail.0.id}}</span></div>
      </div>
    </div>

    <div class="spacer_medium"></div>

    <div class="row">
      <div class="large-12 columns">
        <label>Report Date:</label>
        <div class="sublabel_container"><span class="sublabel">{{detail.0.date|date:"Y-m-d H:i:s e"}}</span></div>
      </div>
    </div>

    <div class="spacer_medium"></div>

    <div class="row">
      <div class="large-12 columns">
        <label>Report Submitted By:</label>
        <div class="sublabel_container"><span class="sublabel">{{detail.0.name}}</span></div>
      </div>
    </div>

    <div class="spacer_medium"></div>

    <div class="row">
      <div class="large-12 columns">
        <label>Reporter Email Address:</label>
        <div class="sublabel_container"><span class="sublabel">{{detail.0.email}}</span></div>
      </div>
    </div>

    <div class="spacer_medium"></div>

    <div class="row">
      <div class="large-12 columns">
        <label>Incident Report Detail:</label>
        <div class="sublabel_container"><span class="sublabel">{{detail.0.detail}}</span></div>
      </div>
    </div>

    <div class="spacer_medium"></div>

    <div class="row">
      <div class="large-12 columns">
        <label>Additional Information Provided:</label>
        <div class="sublabel_container"><span class="sublabel">{% if detail.0.extra %}{{detail.0.extra}}{% else %}No additional information provided.{% endif %}</span></div>
      </div>
    </div>

    <div class="spacer_medium"></div>

    <div class="row">
      <div class="large-12 columns">
        <label>Screenshot 1:</label>
        <div class="sublabel_container"><span class="sublabel">{% if detail.0.screenshot1 %}<img src="/uploads/{{detail.0.screenshot1}}">{% else %}No screenshot provided.{% endif %}</span></div>
      </div>
    </div>

    <div class="spacer_medium"></div>

    <div class="row">
      <div class="large-12 columns">
        <label>Screenshot 2:</label>
        <div class="sublabel_container"><span class="sublabel">{% if detail.0.screenshot2 %}<img src="/uploads/{{detail.0.screenshot2}}">{% else %}No screenshot provided.{% endif %}</span></div>
      </div>
    </div>

  </div>
</div>

{% endblock %}
